Data = {
  :episodes => {
    :next_ruby => [:ruby],
    :confusion => [:tech, :ruby],
    :may_news => [:magazine],
    :april_news => [:famous, :hollywood],
    :august_news => [:hollywood, :magazine]
  },:podcasts => {
    :ruby => [:ruby, :tech],
    :daily => [:hollywood, :famous]
  }
};

def print_fixtures(data, type)
  s = "";
  data.each do |obj, tags|
    tags.each do |tag|
      s << "#{type.downcase}_#{obj}_#{tag}:\n";
      s << "  tag: #{tag}\n";
      s << "  taggable: #{obj}\n";
      s << "  taggable_type: #{type}\n\n";
    end
  end
  s;
end

print print_fixtures(Data[:podcasts], "Podcast");
print print_fixtures(Data[:episodes], "Episode");